﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars.Docking2010.Views.MetroUI;
using DevExpress.XtraEditors;

namespace Sunboxsoft.WinForm.Shell
{
    public partial class ModuleSwitchForm : Form
    {
        public ModuleSwitchForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            for (int index = 0; index < 5; index++)
            {
                TileItemElement element = new TileItemElement();
                element.Text = "module" + index.ToString();
                TileItem tileItem = new TileItem();
                tileItem.Elements.Add(element);
                tileItem.Id = index;
                tileItem.Name = "tileItem" + index.ToString();
                this.tileGroup2.Items.Add(tileItem);
            }
            
        }
    }
}
